﻿using J.FoodManageSet.Application.Command.BenchTableCommand;
using J.FoodManageSet.Application.Command.GroupingCommand;
using MediatR;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace J.FoodManageSet.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class BenchTableController : ControllerBase
    {
        private readonly IMediator _mediator;

        public BenchTableController(IMediator mediator)
        {
            _mediator = mediator;
        }
        /// <summary>
        /// 台费添加
        /// </summary>
        [HttpPost]
        public async Task<int> BenchTableAddUpdate(BenchTableAddCommand command)
        {
            return await _mediator.Send(command);
        }
    }
}
